package com.xiaohudie.JDBC;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

/**
 * @Author xiao hu die
 * @Date 2022/3/13 11:46
 * @Version 1.0
 */
public class Test {
 public static void main(String[] args) {
  test03();
 }
 public static void test03(){
  Properties properties =new Properties();
  properties.setProperty("name","Tom");
  properties.setProperty("age","21");
  try {
   properties.store(new FileWriter("src\\mysql.properties"),null);
  } catch (IOException e) {
   e.printStackTrace();
  }
  System.out.println("保存成功");
 }
}
